package com.erp.erp_project.service;

import com.erp.erp_project.model.Order;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author the bright star
 */
public interface IOrderService extends BaseService<Order> {


    Order getOrderWithOtherById(Integer id);

    List<Order> getOrdersWithOther();

    void updatePic(Integer id, String data);

    List<String> uploadPic(MultipartFile[] files, Integer id);

    void updateFile(Integer id, String data);

    List<String> uploadFile(MultipartFile[] files, Integer id);

    void addOrder(Order order);

    void editOrder(Order order);

    void deleteOrders(List<Integer> ids);

    List<Order> searchOrder(Integer type, String condition);

    void setRequirement(String note,Integer id);
}
